//
//  MGCollectionViewCell.h
//  SanYiTeaching
//
//  Created by 李文强 on 2019/5/3.
//  Copyright © 2019 SanYi. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN
typedef void(^DeleteBlick)(int index);
typedef void(^ResetNameBlick)(int index);
typedef void(^MerginBlick)(int index);
typedef void(^SelectedBlick)(int index);

@interface MGCollectionViewCell : UICollectionViewCell
@property (nonatomic, strong) UILabel *nameLabel;//课程名
@property (nonatomic, strong) UILabel *countLabel;//数量
@property (nonatomic, strong) UIButton *deleteButton;//删除
@property (nonatomic, strong) UIButton *resetNameButton;//重命名
@property (nonatomic, strong) UIButton *mergeButton;//合并
@property (nonatomic, strong) UIButton *selectedButton;//点击合并显示按钮
@property (nonatomic, assign) int indexPath;//记录当前的cell
@property (nonatomic, strong) DeleteBlick deleteBlock;
@property (nonatomic, strong) ResetNameBlick resetNameBlock;
@property (nonatomic, strong) MerginBlick merginBlock;
@property (nonatomic, strong) SelectedBlick selectedBlock;
- (void)resetSelectedObject;
@end

NS_ASSUME_NONNULL_END
